import { defHttp } from '@/utils/http/axios';

enum Api {
  EXAMINATION_LIST = '/platform-api/app/examination/list',
  EXAMPOINTS_LIST = '/platform-api/app/examPoints/list',
  SCORE_CARD_LIST="/platform-api/app/scoreCard/list",
  SELF_INSPECTION_CARD="/platform-api/app/selfInspectionCard/list",
  CUE_CARD="/platform-api/app/cueCard/list",
  VIDEO_LIST = '/platform-api/app/video/listPC',
  EXAM_RECORDS_LIST = '/platform-api/app/examRecords/listPC',
  EXAM_RECORDS_SUBMIT_PC = '/platform-api/app/examRecords/submitPC',
  EXAM_RECORDS_DETAIL_LIST =   '/platform-api/app/examRecordsDetail/list',
  VIDEO_POINT ='/platform-api/app/videoPoints/list',
  UPLOAD = '/platform-api/tool/upload/uploadMultipartFile',
  DIAN_PING_SAVE_OR_UPDATE ='/platform-api/app/videoPoints/saveOrUpdate',
  DIAN_PING_DELETE ='/platform-api/app/videoPoints/delete'
}

// Get personal center-basic settings

// 获取习题列表
export const examinationList = (params) => defHttp.get<void>({ url: Api.EXAMINATION_LIST ,params});

// 获取知识点 
export const examPointsList = (params) => defHttp.get<void>({ url: Api.EXAMPOINTS_LIST ,params});

// 获取评分卡
export const scoreCardList = (params) => defHttp.get<void>({ url: Api.SCORE_CARD_LIST ,params});

// 获取自检卡
export const selfInspectionCardList = (params) => defHttp.get<void>({ url: Api.SELF_INSPECTION_CARD ,params});

// 获取提示卡  
export const cueCardList = (params) => defHttp.get<void>({ url: Api.CUE_CARD ,params});

// 点评保存PC 
export const videoPointsSaveOrUpdatePC = (params) => defHttp.post<void>({ url: '/platform-api/app/videoPoints/saveOrUpdatePC' ,params});

// 点评提交PC 
export const videoSubmitPC = (params) => defHttp.post<void>({ url: '/platform-api/app/video/submitPC' ,params});

// 获取考试列表 
export const examRecordsList = (params) => defHttp.get<void>({ url: Api.EXAM_RECORDS_LIST ,params});

// 提交考试详情
export const examRecordsDetailSaveListPC = (params) => defHttp.post<void>({ url: '/platform-api/app/examRecords/submitPC' ,params});


// 获取视频列表 包含训练和考核
export const getVideoList = (params) => defHttp.get<void>({ url: Api.VIDEO_LIST ,params});

// 获取考试记录详情（评分卡评分）
export const getExamRecordsDetailList = (params) => defHttp.get<void>({ url: Api.EXAM_RECORDS_DETAIL_LIST ,params});

// 获取视频点评点 
export const getVideoPoint = (params) => defHttp.get<void>({ url: Api.VIDEO_POINT ,params});

// 更新视频点评 
export const videoPointsSaveOrUpdate = (params) => defHttp.post<void>({ url: Api.DIAN_PING_SAVE_OR_UPDATE ,params});

// 删除视频点评点
export const videoPointsDelete = (params) => defHttp.post<void>({ url: Api.DIAN_PING_DELETE ,params});



